import java.util.ArrayList;
import java.util.List;
public class Test {
    public static void func(String str1, String str2){
        List<Character> ret = new ArrayList<>();

        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            if (!str2.contains(ch + "")){
                ret.add(ch);
            }
        }

        System.out.println(ret);
        /*for (int i = 0; i < ret.size(); i++) {

        }*/
    }




    public static void func1(String str1,String str2) {
        List<Character> ret = new ArrayList<>();
        //1、通过遍历str1这个字符串
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            if(!str2.contains(ch+"")) {
                ret.add(ch);
            }
        }
        //System.out.println(ret);
        for (int i = 0; i < ret.size(); i++) {
            System.out.print(ret.get(i));
        }
        System.out.println();
    }
}
